<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>任务记录网站</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>任务记录</h1>
            <p>记录您每天需要完成的任务</p>
        </header>

        <div class="task-input">
            <input type="text" id="taskInput" placeholder="输入新任务...">
            <button id="addTaskBtn">添加任务</button>
        </div>

        <div class="filter-options">
            <button class="filter-btn active" data-filter="all">全部</button>
            <button class="filter-btn" data-filter="active">待完成</button>
            <button class="filter-btn" data-filter="completed">已完成</button>
        </div>

        <div class="task-list" id="taskList">
            <!-- 任务将通过JavaScript动态添加 -->
        </div>

        <div class="task-stats">
            <p>总任务: <span id="totalTasks">0</span> | 已完成: <span id="completedTasks">0</span></p>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>